home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 935 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.9 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news text default
99% file C source, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 2e 66 75 6e 64 70 |Path: ne|ws.fundp|
|00000010| 2e 61 63 2e 62 65 21 4e | 65 77 73 6d 61 73 74 65 |.ac.be!N|ewsmaste|
|00000020| 72 0a 46 72 6f 6d 3a 20 | 46 72 61 6e 63 69 73 63 |r.From: |Francisc|
|00000030| 6f 20 4d 65 6c 6f 20 4c | 65 64 65 72 6d 61 6e 6e |o Melo L|edermann|
|00000040| 20 3c 66 6d 65 6c 6f 40 | 62 69 71 2e 66 75 6e 64 | <fmelo@|biq.fund|
|00000050| 70 2e 61 63 2e 62 65 3e | 0a 4e 65 77 73 67 72 6f |p.ac.be>|.Newsgro|
|00000060| 75 70 73 3a 20 63 6f 6d | 70 2e 6c 61 6e 67 2e 63 |ups: com|p.lang.c|
|00000070| 0a 53 75 62 6a 65 63 74 | 3a 20 41 72 72 61 79 20 |.Subject|: Array |
|00000080| 6f 66 20 70 6f 69 6e 74 | 65 72 73 20 74 6f 20 61 |of point|ers to a|
|00000090| 20 74 72 65 65 20 73 74 | 72 75 63 74 75 72 65 20 | tree st|ructure |
|000000a0| 3f 0a 44 61 74 65 3a 20 | 31 30 20 4a 61 6e 20 31 |?.Date: |10 Jan 1|
|000000b0| 39 39 36 20 31 31 3a 30 | 30 3a 31 33 20 47 4d 54 |996 11:0|0:13 GMT|
|000000c0| 0a 4f 72 67 61 6e 69 7a | 61 74 69 6f 6e 3a 20 46 |.Organiz|ation: F|
|000000d0| 55 4e 44 50 2c 20 4e 61 | 6d 75 72 2c 20 42 65 6c |UNDP, Na|mur, Bel|
|000000e0| 67 69 75 6d 0a 4d 65 73 | 73 61 67 65 2d 49 44 3a |gium.Mes|sage-ID:|
|000000f0| 20 3c 34 64 30 36 37 74 | 24 39 6c 63 40 68 65 72 | <4d067t|$9lc@her|
|00000100| 6d 65 73 2e 66 75 6e 64 | 70 2e 61 63 2e 62 65 3e |mes.fund|p.ac.be>|
|00000110| 0a 4e 4e 54 50 2d 50 6f | 73 74 69 6e 67 2d 48 6f |.NNTP-Po|sting-Ho|
|00000120| 73 74 3a 20 62 69 71 2d | 70 63 31 2e 62 69 71 2e |st: biq-|pc1.biq.|
|00000130| 66 75 6e 64 70 2e 61 63 | 2e 62 65 0a 4d 69 6d 65 |fundp.ac|.be.Mime|
|00000140| 2d 56 65 72 73 69 6f 6e | 3a 20 31 2e 30 0a 43 6f |-Version|: 1.0.Co|
|00000150| 6e 74 65 6e 74 2d 54 79 | 70 65 3a 20 74 65 78 74 |ntent-Ty|pe: text|
|00000160| 2f 70 6c 61 69 6e 3b 20 | 63 68 61 72 73 65 74 3d |/plain; |charset=|
|00000170| 75 73 2d 61 73 63 69 69 | 0a 43 6f 6e 74 65 6e 74 |us-ascii|.Content|
|00000180| 2d 54 72 61 6e 73 66 65 | 72 2d 45 6e 63 6f 64 69 |-Transfe|r-Encodi|
|00000190| 6e 67 3a 20 37 62 69 74 | 0a 58 2d 4d 61 69 6c 65 |ng: 7bit|.X-Maile|
|000001a0| 72 3a 20 4d 6f 7a 69 6c | 6c 61 20 31 2e 32 32 20 |r: Mozil|la 1.22 |
|000001b0| 28 57 69 6e 64 6f 77 73 | 3b 20 49 3b 20 31 36 62 |(Windows|; I; 16b|
|000001c0| 69 74 29 0a 54 6f 3a 20 | 66 6d 65 6c 6f 40 62 69 |it).To: |fmelo@bi|
|000001d0| 71 2e 66 75 6e 64 70 2e | 61 63 2e 62 65 0a 0a 48 |q.fundp.|ac.be..H|
|000001e0| 69 20 43 6f 6c 6c 65 61 | 67 75 65 73 2c 20 49 20 |i Collea|gues, I |
|000001f0| 68 61 76 65 20 62 65 65 | 6e 20 6c 65 61 72 6e 69 |have bee|n learni|
|00000200| 6e 67 20 43 20 6c 61 6e | 67 75 61 67 65 20 6a 75 |ng C lan|guage ju|
|00000210| 73 74 20 66 72 6f 6d 20 | 6f 6e 65 20 6d 6f 6e 74 |st from |one mont|
|00000220| 68 20 61 67 6f 20 0a 61 | 6e 64 20 49 20 64 6f 6e |h ago .a|nd I don|
|00000230| 27 74 20 6b 6e 6f 77 20 | 74 6f 6f 20 6d 75 63 68 |'t know |too much|
|00000240| 20 61 62 6f 75 74 20 74 | 68 69 73 20 6c 61 6e 67 | about t|his lang|
|00000250| 75 61 67 65 2e 20 49 20 | 68 61 76 65 20 61 20 70 |uage. I |have a p|
|00000260| 72 6f 62 6c 65 6d 20 77 | 69 74 68 20 74 68 65 20 |roblem w|ith the |
|00000270| 0a 61 73 73 69 67 6e 6d | 65 6e 74 20 6f 66 20 70 |.assignm|ent of p|
|00000280| 6f 69 6e 74 65 72 73 20 | 69 6e 20 61 6e 20 61 72 |ointers |in an ar|
|00000290| 72 61 79 20 6f 66 20 70 | 6f 69 6e 74 65 72 73 20 |ray of p|ointers |
|000002a0| 77 69 74 68 20 61 20 73 | 70 65 63 69 66 69 63 61 |with a s|pecifica|
|000002b0| 6c 20 64 65 66 69 6e 65 | 64 20 0a 73 74 72 75 63 |l define|d .struc|
|000002c0| 74 75 72 65 2e 20 46 6f | 72 20 65 78 61 6d 70 6c |ture. Fo|r exampl|
|000002d0| 65 3a 0a 0a 0a 2f 2a 20 | 42 4f 58 45 53 20 53 54 |e:.../* |BOXES ST|
|000002e0| 52 55 43 54 55 52 45 20 | 46 4f 52 20 54 48 45 20 |RUCTURE |FOR THE |
|000002f0| 43 4f 4e 53 54 52 55 43 | 54 49 4f 4e 20 4f 46 20 |CONSTRUC|TION OF |
|00000300| 41 20 54 52 45 45 20 2a | 2f 0a 0a 73 74 72 75 63 |A TREE *|/..struc|
|00000310| 74 20 62 6f 78 65 73 20 | 7b 0a 20 20 20 20 20 20 |t boxes |{. |
|00000320| 20 20 20 20 20 20 20 20 | 69 6e 74 20 6e 75 6d 62 | |int numb|
|00000330| 65 72 3b 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |er;. | |
|00000340| 20 20 73 74 72 75 63 74 | 20 62 6f 78 65 73 20 2a | struct| boxes *|
|00000350| 70 6f 69 6e 74 65 72 5f | 31 3b 0a 20 20 20 20 20 |pointer_|1;. |
|00000360| 20 20 20 20 20 20 20 20 | 20 73 74 72 75 63 74 20 | | struct |
|00000370| 62 6f 78 65 73 20 2a 70 | 6f 69 6e 74 65 72 5f 32 |boxes *p|ointer_2|
|00000380| 3b 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |;. | |
|00000390| 73 74 72 75 63 74 20 62 | 6f 78 65 73 20 2a 70 6f |struct b|oxes *po|
|000003a0| 69 6e 74 65 72 5f 33 3b | 0a 20 20 20 20 20 20 20 |inter_3;|. |
|000003b0| 20 20 20 20 20 20 7d 0a | 0a 2f 2a 20 41 52 52 41 | }.|./* ARRA|
|000003c0| 59 20 4f 46 20 50 4f 49 | 4e 54 45 52 53 20 54 4f |Y OF POI|NTERS TO|
|000003d0| 20 42 4f 58 45 53 20 53 | 54 52 55 43 54 55 52 45 | BOXES S|TRUCTURE|
|000003e0| 20 46 4f 52 20 4d 41 4e | 41 47 45 20 2a 2f 0a 2f | FOR MAN|AGE */./|
|000003f0| 2a 20 53 4f 4d 45 20 42 | 52 41 4e 43 48 45 53 20 |* SOME B|RANCHES |
|00000400| 4f 46 20 54 48 45 20 54 | 52 45 45 20 20 20 20 20 |OF THE T|REE |
|00000410| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000420| 20 20 2a 2f 0a 0a 73 74 | 72 75 63 74 20 62 6f 78 | */..st|ruct box|
|00000430| 65 73 20 61 72 72 61 79 | 5f 70 6f 69 6e 74 65 72 |es array|_pointer|
|00000440| 73 20 5b 31 35 5d 3b 0a | 0a 0a 53 75 70 6f 73 65 |s [15];.|..Supose|
|00000450| 20 74 68 61 74 20 49 20 | 68 61 76 65 20 74 68 65 | that I |have the|
|00000460| 20 61 72 72 61 79 20 6f | 66 20 70 6f 69 6e 74 65 | array o|f pointe|
|00000470| 72 73 20 61 6c 72 65 61 | 64 79 20 64 65 66 69 6e |rs alrea|dy defin|
|00000480| 65 64 2c 20 77 69 74 68 | 20 65 76 65 72 79 20 0a |ed, with| every .|
|00000490| 70 6f 69 6e 74 65 72 20 | 70 6f 69 6e 74 69 6e 67 |pointer |pointing|
|000004a0| 20 74 6f 20 61 20 62 6f | 78 65 73 20 73 74 72 75 | to a bo|xes stru|
|000004b0| 63 74 75 72 65 20 61 6e | 64 20 65 76 65 72 79 20 |cture an|d every |
|000004c0| 62 6f 78 65 73 20 73 74 | 72 75 63 74 75 72 65 20 |boxes st|ructure |
|000004d0| 0a 63 6f 6e 74 61 69 6e | 73 20 6f 6e 6c 79 20 74 |.contain|s only t|
|000004e0| 68 65 20 69 6e 74 65 67 | 65 72 20 6e 75 6d 62 65 |he integ|er numbe|
|000004f0| 72 20 64 65 66 69 6e 65 | 64 2e 20 49 6e 20 74 68 |r define|d. In th|
|00000500| 69 73 20 6d 6f 6d 65 6e | 74 20 49 20 77 6f 75 6c |is momen|t I woul|
|00000510| 64 20 6c 69 6b 65 20 0a | 74 6f 20 64 65 66 69 6e |d like .|to defin|
|00000520| 65 20 74 68 65 20 74 68 | 72 65 65 20 70 6f 69 6e |e the th|ree poin|
|00000530| 74 65 72 73 20 69 6e 20 | 65 76 65 72 79 20 62 6f |ters in |every bo|
|00000540| 78 20 69 6e 20 74 68 65 | 20 77 61 79 20 6f 66 20 |x in the| way of |
|00000550| 74 68 65 73 65 20 70 6f | 69 6e 74 65 72 73 20 0a |these po|inters .|
|00000560| 70 6f 69 6e 74 20 74 6f | 20 61 6e 6f 74 68 65 72 |point to| another|
|00000570| 20 65 6c 65 6d 65 6e 74 | 20 69 6e 20 74 68 65 20 | element| in the |
|00000580| 61 72 72 61 79 2e 20 49 | 20 68 61 76 65 20 74 72 |array. I| have tr|
|00000590| 69 65 64 20 73 74 61 74 | 65 6d 65 6e 74 73 20 6c |ied stat|ements l|
|000005a0| 69 6b 65 20 0a 74 68 69 | 73 20 77 69 74 68 20 6f |ike .thi|s with o|
|000005b0| 75 74 20 73 75 63 63 65 | 73 73 3a 0a 0a 0a 28 2a |ut succe|ss:...(*|
|000005c0| 28 61 72 72 61 79 5f 70 | 6f 69 6e 74 65 72 73 20 |(array_p|ointers |
|000005d0| 2b 20 31 29 29 2e 70 6f | 69 6e 74 65 72 5f 31 20 |+ 1)).po|inter_1 |
|000005e0| 3d 20 28 61 72 72 61 79 | 5f 70 6f 69 6e 74 65 72 |= (array|_pointer|
|000005f0| 73 20 2b 20 30 29 3b 0a | 0a 6f 72 0a 0a 28 61 72 |s + 0);.|.or..(ar|
|00000600| 72 61 79 5f 70 6f 69 6e | 74 65 72 73 5b 31 5d 29 |ray_poin|ters[1])|
|00000610| 2e 70 6f 69 6e 74 65 72 | 5f 31 20 3d 20 26 61 72 |.pointer|_1 = &ar|
|00000620| 72 61 79 5f 70 6f 69 6e | 74 65 72 73 5b 30 5d 3b |ray_poin|ters[0];|
|00000630| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00000640| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000650| 20 20 0a 0a 53 6f 6d 65 | 62 6f 64 79 20 6b 6e 6f | ..Some|body kno|
|00000660| 77 20 68 6f 77 20 63 61 | 6e 20 49 20 64 65 66 69 |w how ca|n I defi|
|00000670| 6e 65 20 61 20 70 6f 69 | 6e 74 65 72 20 69 6e 73 |ne a poi|nter ins|
|00000680| 69 64 65 20 74 68 65 20 | 62 6f 78 20 69 6e 20 74 |ide the |box in t|
|00000690| 68 65 20 77 61 79 20 74 | 68 61 74 20 0a 69 74 20 |he way t|hat .it |
|000006a0| 70 6f 69 6e 74 73 20 74 | 6f 20 61 20 62 6f 78 20 |points t|o a box |
|000006b0| 69 6e 20 74 68 65 20 61 | 72 72 61 79 20 3f 3f 3f |in the a|rray ???|
|000006c0| 2c 20 49 6e 20 61 64 76 | 61 6e 63 65 2c 20 74 68 |, In adv|ance, th|
|000006d0| 61 6e 6b 20 79 6f 75 20 | 76 65 72 79 20 6d 75 63 |ank you |very muc|
|000006e0| 68 2c 20 0a 62 65 73 74 | 20 77 69 73 68 65 73 2c |h, .best| wishes,|
|000006f0| 20 20 20 20 20 20 20 20 | 0a 0a 0a 20 20 20 20 20 | |... |
|00000700| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 46 | | F|
|00000710| 72 61 6e 63 69 73 63 6f | 20 4d 65 6c 6f 20 4c 65 |rancisco| Melo Le|
|00000720| 64 65 72 6d 61 6e 6e 20 | 20 20 20 20 20 20 20 20 |dermann | |
|00000730| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 0a | | .|
|00000740| 0a 6d 61 69 6c 74 6f 3a | 66 6d 65 6c 6f 40 62 69 |.mailto:|fmelo@bi|
|00000750| 71 2e 66 75 6e 64 70 2e | 61 63 2e 62 65 20 0a 0a |q.fundp.|ac.be ..|
|00000760| 68 74 74 70 3a 2f 2f 62 | 69 71 2d 70 63 31 2e 62 |http://b|iq-pc1.b|
|00000770| 69 71 2e 66 75 6e 64 70 | 2e 61 63 2e 62 65 2f 69 |iq.fundp|.ac.be/i|
|00000780| 6e 64 65 78 2e 68 74 6d | 6c 20 20 20 20 0a 0a 0a |ndex.htm|l ...|
|00000790| 0a | |. | |
+--------+-------------------------+-------------------------+--------+--------+